package com.sinszm.wx.properties;

import com.sinszm.common.util.SignUtils;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.lang.NonNull;
import org.springframework.validation.annotation.Validated;

/**
 * 微信基础配置
 *
 * @author chenjianbo
 */
@Validated
@ConfigurationProperties(value = "szm.boot.wx")
public class BasicWxProperties {

    /**
     * 微信支付Api前缀默认
     */
    private String payApi = "https://api.mch.weixin.qq.com";

    /**
     * 签名类型
     */
    @NonNull
    private SignUtils.Method signType = SignUtils.Method.HMAC_SHA256;

    public String getPayApi() {
        return payApi;
    }

    public void setPayApi(String payApi) {
        this.payApi = payApi;
    }

    public SignUtils.Method getSignType() {
        return signType;
    }

    public void setSignType(SignUtils.Method signType) {
        this.signType = signType;
    }

}
